package com.ss.SmartStock.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ss.SmartStock.pojo.entity.Operation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ss.SmartStock.pojo.dto.operate.OperateQueryRequest;
import com.ss.SmartStock.pojo.vo.OperateQueryVO;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2024-06-20
 */
public interface OperationService extends IService<Operation> {

    QueryWrapper<Operation> getQueryWrapper(OperateQueryRequest operateQueryRequest);

    Page<OperateQueryVO> getOperateQueryVO(Page<Operation> operationPage, HttpServletRequest httpServletRequest);
    int insertOperation(Operation operation);


    IPage<Operation> selectPageOperations(long current,long size);
}
